package com.efesco.service.hirefire;

import java.util.Date;
import java.util.List;

import com.bstek.dorado.common.*;
import com.bstek.dorado.data.*;
import com.bstek.dorado.data.db.DBStatement;
import com.bstek.dorado.utils.variant.VariantSet;
import com.bstek.dorado.view.*;
import com.bstek.dorado.view.data.*;
import com.bstek.dorado.view.control.*;

/**
 * V_fire_dealViewModel
 */
public class V_fire_dealViewModel extends DefaultViewModel {
  protected void doUpdateData(ParameterSet parameters)
      throws Exception {
//	  DoradoContext context = DoradoContext.getContext();
	  DBStatement dbs = new DBStatement();
	  Dataset ds = getDataset("dataset_fire_detail");
	  Dataset dsl = getDataset("dataset_fire_list");
	  String sql="update s_employee set employee_polity="+dsl.getInt("employee_polity")+" where employee_id='"+dsl.getString("EMPLOYEE_ID")+"'";
	   dbs.setSql(sql);
	   dbs.execute();
	  com.efesco.common.CommUtil.UpdateData(ds, "s_employee_hire_fire", "EMPLOYEE_HIRE_FIRE_ID");
   // super.doUpdateData(parameters);
  }

}
